UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

The vCenter UI service DefaultServlet must be set to "readonly" for "PUT" and "DELETE" commands.


Overview

Finding ID Version Rule ID IA Controls Severity
V-259123 VCUI-80-000130 SV-259123r935273_rule Medium
Description
The default servlet (or DefaultServlet) is a special servlet provided with Tomcat that is called when no other suitable page is found in a particular folder. The DefaultServlet serves static resources as well as directory listings. The DefaultServlet is configured by default with the "readonly" parameter set to "true" where HTTP commands such as "PUT" and "DELETE" are rejected. Changing this to "false" allows clients to delete or modify static resources on the server and to upload new resources. DefaultServlet "readonly" must be set to "true", either literally or by absence (default).
STIG Date
VMware vSphere 8.0 vCenter Appliance User Interface (UI) Security Technical Implementation Guide 2023-10-29

Details

Check Text ( C-62863r935271_chk )
At the command prompt, run the following command:

# xmllint --xpath "//*[contains(text(), 'DefaultServlet')]/parent::*" /usr/lib/vmware-vsphere-ui/server/conf/web.xml

Example output:


File servlet
FileServlet
org.apache.catalina.servlets.DefaultServlet


If the "readOnly" param-value for the "DefaultServlet" servlet class is set to "false", this is a finding.

If the "readOnly" param-value does not exist, this is not a finding.
Fix Text (F-62772r935272_fix)
Navigate to and open:

/usr/lib/vmware-vsphere-ui/server/conf/web.xml

Navigate to the ///org.apache.catalina.servlets.DefaultServlet/ node and remove the following node:


readonly
false


Restart the service with the following command:

# vmon-cli --restart vsphere-ui